<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	bizBillInfo	= Request("bizBillInfo")
	income	= Request("income")
	billMemo	= Request("billMemo")
	flag	= Request("flag")
	
	'orderMemo	= Replace(orderMemo,"'","''")
	issueId = Request.Cookies("S_uid")

	billCd = aFieldValue("SELECT ISNULL(MAX(billCd),0)+1 FROM tblBizBill")

	SQLTitle = "-- ■■■■ 거래명세서 생성 ■■■■"
	SQL = "exec spBizBill '" & billCd & "', '" & bizBillInfo & "', '" & billMemo & "', '" & income & "', '" & issueId & "', '" & flag & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'RESPONSE.WRITE SQL
'RESPonse.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
	Response.end
%>